<?php 
$zebra=0;
if ($data->num_rows() > 0):
	foreach($data->result_array() as $ch):
?>
	<tr <?php if ($zebra++%2==1):?> class="zebra" <?php endif?> 
		onmouseover="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','visible')"
		onmouseout="$(this).getElements('input[class:buttonSmall]').setStyle('visibility','hidden')">
	<td><?php echo $ch['kary_id']?></td>
	<td><?php echo $ch['kary_nama']?></td>
	<td><?php echo strtolower($ch['kary_jenis_kelamin'])=="l"? "Laki-laki" : "Perempuan"?></td>
	<td><?php echo $ch['kary_email']?></td>
	<td><?php echo date('d-m-Y',strtotime($ch['kary_tgl_masuk']))?></td>
	<td align="right" nowrap="nowrap">
	<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="#" 
			onclick="show_historyJabatan('<?php echo $ch['kary_id']?>')" title="History Jabatan" />
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="^" 
			onclick="show_historyCuti('<?php echo $ch['kary_id']?>')" title="History Cuti" />
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="!" 
			onclick="do_edit('<?php echo $ch['kary_id']?>')" title="Edit" />
		<input class="buttonSmall" type="button" style="font-size: 14px; visibility:hidden;" value="-" 
			onclick="FBModal_confirm(APP.base+'/ajax/confirmDialog', 'Delete', 'Hapus record ?', 
				'do_delete($(this), \'<?php echo $ch['kary_id']?>\')')" title="Delete" />
	</td>
	</tr>
<?php 
	endforeach;
else:
?><tr><td align="center" colspan="6">Tidak ada data</td></tr><?php 
endif;